import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Letrero here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Letrero extends Actor
{
    int num=0;
    public Letrero(String mensaje){
    this.despliega(mensaje);
    }
    public void despliega(String mensaje){
    
    super.setImage(new GreenfootImage(mensaje,20,java.awt.Color.black,java.awt.Color.white));
    }
    /**
     * Act - do whatever the Letrero wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
       /*num++;
       if(num==100){getWorld().removeObject(this);}*/
       
    }    
}
